<?php


	namespace Midi\Event;
	
	final class EventType {
		
		const NOTE_ON               = 0x90;
		const PROGRAM_CHANGE        = 0xC0;
		
		const UNKOWN = -1;
		
		private static $eventNameMap = array(
			
			0x90 => 'Note On',
			0xC0 => 'Program Change',

		);
		
		public static function getEventName($event) {
			if (!isset(self::$eventNameMap[$event])) {
				throw new \InvalidArgumentException('1st argument must be one of the EventType constants');
			}
			
			return self::$eventNameMap[$event];
		}
	}
	

?>